home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Documentation / develop / Better Apple Event Coding / Code Samples / AppLib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-16  |  1.1 KB  |  40 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------------------
  2.  
  3.     Program:    CPlusTESample 2.0
  4.     File:        AppLib.h
  5.  
  6.     by Andrew Shebanow
  7.     of Apple Macintosh Developer Technical Support
  8.  
  9.     Copyright © 1989-1990 Apple Computer, Inc.
  10.     All rights reserved.
  11.  
  12. ------------------------------------------------------------------------------------------*/
  13.  
  14. #ifndef __APPLIB__
  15. #define __APPLIB__
  16.  
  17. /*
  18.     These definitions are shared by Rez and C++. We use #define statements
  19.     instead of constants in this file because Rez doesn't support constants.
  20.  */
  21.  
  22. /* Some constants for resource ID's */
  23. #define kErrStrings            128                /* error string list */
  24. #define kBuzzwordStrings    129                /* list of buzzwords */
  25. #define kSysErrStrings        130                /* system error strings */
  26. #define    rUserAlert            129                /* user error alert */
  27. #define rSaveAlert            130                /* do you wanna save? alert */
  28.  
  29. /* The following are indicies into our error STR# resource. */
  30. #define    eWrongMachine        1
  31. #define    eSmallSize            2
  32. #define eCannotOpenDoc        3
  33. #define eCannotReadDoc        4
  34.  
  35. /* indices into buzzwords string resource */
  36. #define bQuitting            1
  37. #define bClosing            2
  38.  
  39. #endif
  40.